﻿<Window x:Class="IISAutoDeployment.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PSS IIS AutoDeployment Tool - .NET4.0" Height="323.39" Width="635" Icon="pro_favicon.ico" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen">
    <Grid Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" Margin="0,0,-6,0" Unloaded="Window_Closed">
        <ComboBox x:Name="TargetSitesComboBox" Margin="10,46,370,0" VerticalAlignment="Top" Height="30" ToolTip="Select to which site to deploy the package selected below"/>
        <ComboBox x:Name="MaintPageComboBox" VerticalAlignment="Top" Height="30" ToolTip="Select the Maintenance Page. If this is a deployment to Staging (aka Test-Prod), select the second option." Margin="362,46,15,0"/>
        <ProgressBar x:Name="DeployProgressBar" Height="30" Margin="10,249,15,0" VerticalAlignment="Top"/>
        <Button x:Name="DeployButton" Click="DeployButton_OnClick" Content="Start Deployment" HorizontalAlignment="Left" Margin="10,215,0,0" VerticalAlignment="Top" Width="100" Height="29" ToolTip="Starts the deployment process, going through setting the maintenance page, backing up, deploying and recycling app pool" />
        <Button x:Name="BackupSelectFileButton" Click="BackupSelectFileButton_OnClick" Content="Select..." HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Margin="10,124,0,0" Height="29"/>
        <TextBlock x:Name="BackupFileNameTextBlock" HorizontalAlignment="Left" Margin="115,124,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="29" Width="155"/>
        <Button x:Name="DeployPackageFileButton" Click="MaintSelectFileButton_OnClick" Content="Select..." HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Margin="362,124,0,0" Height="29"/>
        <TextBlock x:Name="DeployPackageFileNameTextBlock" HorizontalAlignment="Left" Margin="467,124,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="29" Width="155"/>
        <TextBlock x:Name="DeploymentStatusTextBlock" Margin="412,224,18,0" TextWrapping="Wrap" Text="Waiting for input...." VerticalAlignment="Top" Height="20" TextAlignment="Right"/>
        <Label Content="Select Backup Location" HorizontalAlignment="Left" Margin="10,98,0,0" VerticalAlignment="Top" Width="260"/>
        <Label Content="Select Deployment Package" HorizontalAlignment="Left" Margin="362,98,0,0" VerticalAlignment="Top" Width="260"/>
        <Label Content="Select Target Site" HorizontalAlignment="Left" Margin="10,20,0,0" VerticalAlignment="Top" Width="260"/>
        <Label Content="Select Maintenance Page" HorizontalAlignment="Left" Margin="362,20,0,0" VerticalAlignment="Top" Width="260"/>
        <CheckBox x:Name="IsInternalSite" Content="Internal Site?" HorizontalAlignment="Left" Margin="10,165,0,0" VerticalAlignment="Top" Cursor="Hand" ToolTip="Select if deploying to internal site"/>
        <CheckBox x:Name="IsLoadBalancedSite" Click="IsLoadBalancedSite_OnClick" Content="IIS Load Balanced?" HorizontalAlignment="Left" Margin="10,186,0,0" VerticalAlignment="Top" Cursor="Hand" ToolTip="Select if deploying to internal site"/>
        <CheckBox x:Name="RunDiff" Content="Run web.config analyzer?" HorizontalAlignment="Left" Margin="362,165,0,0" VerticalAlignment="Top" Cursor="Hand" ToolTip="Select to run diff of backup vs deployment web.configs" IsChecked="True"/>
        <CheckBox x:Name="CopyDependencies" Content="Copy dependencies over?" HorizontalAlignment="Left" Margin="362,186,0,0" VerticalAlignment="Top" Cursor="Hand" ToolTip="Select to copy over additional specific file dependencies needed for certain apps" IsChecked="True"/>
        <CheckBox x:Name="RunSanityCheck" Content="Run API pre-deployment check?" HorizontalAlignment="Left" Margin="362,186,0,0" VerticalAlignment="Top" Cursor="Hand" ToolTip="Select to run API specific checks on deployment web.config" Visibility="Hidden"/>
    </Grid>
</Window>
